DEMO := demo
OBJECTS:= main.o test_file_desc.o test_timer.o

CFLAGS += -I/usr/local/include -ggdb

.PHONY: $(DEMO) clean test

all: $(DEMO)

$(DEMO): $(OBJECTS)
	$(CC) -o $@ $^ -L ../ -luevent -lptr_vector

clean:
	-rm -f *.o

test: $(DEMO)
	LD_LIBRARY_PATH=/usr/local/lib ./$(DEMO)
